package demo06Exception;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:咭咭熊
 * Date:2021 - 09 - 27
 * Time:15:33
 */
class Person1 implements Cloneable{
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
public class Test02 {
    public static void main(String[] args) throws CloneNotSupportedException{
        Person1 p1 = new Person1();
        Person1 p2 = (Person1) p1.clone();
    }
}
